<!-- FOTOS -->
<div  class="example">
    <div class="ppy" id="ppy3">
            <ul class="ppy-imglist">
                <?php 
  $sql	= mysql_query("SELECT * FROM fotos_anuncios WHERE anuncio = '".$dadostemp["id"]."'");
  $num	= mysql_num_rows($sql);
  
  if($num == 0){
  
  echo "N&atilde;o existe fotos cadastrada";
  
  }else{
  while($rows = mysql_fetch_array($sql)){
  ?>
   <li><a href="http://farm4.static.flickr.com/3142/3053892214_390c0365df.jpg"><img src="/thumb.php?img=imagens/produtos/<?php echo $rows["foto"]; ?>&w=300" alt="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras euismod risus non diam." /></a></li>
  <? }} ?>
                
                </ul>
            <div class="ppy-outer">
                <div class="ppy-stage">
                    <div class="ppy-nav">
                        <div class="nav-wrap">
                            <a class="ppy-prev" title="Previous image">Anterior</a>
                            <a class="ppy-switch-enlarge" title="Enlarge">Almentar</a>
                            <a class="ppy-switch-compact" title="Close">Fechar</a>
                            <a class="ppy-next" title="Next image">Próximas</a>
                        </div>
                    </div>
                    <div class="ppy-counter">
                        <strong class="ppy-current"></strong> / <strong class="ppy-total"></strong> 
                    </div>
                </div>
                <div style="display:none" class="ppy-caption">
                    <span class="ppy-text"></span>
                </div>
            </div>
        </div>
        
        <h2>&nbsp;</h2>
    
</div>

<!-- FIM FOTOS -->




<div>
  
  <div id="videoDestaqueYou">
  <?php
  if(count($dados)==0){
	  ?>
	  <br />
  <br />
  
  <div align="center"><strong style="font-size:18px">Ops!? :&acute;(</strong> </div> 
   <br />
	  Que pena, este anunciante n&atilde;o adicionou v&iacute;deo!  
	 <?
  }else{
  if(count($dadosativo)==0){
	  ?>
	  Clique no v&iacute;deo abaixo para assisti-lo.
	  <?
  }else{
  foreach($dadosativo as $videosDest){ 
  if($videosDest["tipo"]=="youtube"){
  ?>	
  

<div style="margin-left:2.75px"><?php $videoexb	= $_vid->embedVideo($videosDest["url"],295,250); ?></div>
  
  <?
  }
  } 
  }}
  
  ?>
  
  </div>
  <div id="colsfoto" align="center">
  
  <?php	
  
  if(count($dados)==0){
  }else{
	  foreach($dados as $videos){ 
	  if($videos["tipo"]=="youtube"){
		  $videoexb	= $_vid->youtubeImage($videos["url"]);
		  }
	  
  ?>
	  
  <div style="border:solid 1px #CCC; width:67px; margin-left:5px; margin-top:3px; float:left">
  <img src="<?=$videoexb?>" onclick="carregaVideoDestaque('<?=$videos["url"]?>')" width="67" />
  </div>
  <? }} ?>
	  
  </div>
  
  
  
  
  </div>





